package com.test.xshang.pattern.factory.method;

import com.test.xshang.pattern.factory.entity.Mouse;

/**
 * @BelongsProject: simpleframework
 * @BelongsPackage: com.Xshang.pattern.factory.method
 * @Author: xshang
 * @CreateTime: 2023-06-23  19:00
 * @Description: TODO
 * @Version: 1.0
 */
public class FactoryMethodDemo {

    public static void main(String[] args) {
        MouseFactory hpMouseFactory = new HpMouseFactory();
        Mouse mouse = hpMouseFactory.creatMouse();
        mouse.sayHi();
    }

}
